﻿using PersistenceLayer.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PersistenceLayer.DAL
{
	public class PedidoItemDAL
	{
		private Entities Entity;

		public PedidoItemDAL()
		{
			Entity = new Entities();
		}

		public Int64 Adicionar(Pedido_Item pi)
		{
			Entity.Pedido_Item.Add(pi);
			Entity.SaveChanges();
			return pi.ID;
		}
	}
}
